package com.wzy.springObserver;

import lombok.extern.slf4j.Slf4j;
import org.springframework.context.event.EventListener;
import org.springframework.stereotype.Service;

/**
 * @Author: wzy
 * @Date: 2022/10/11/13:14
 * @Description:
 */
@Slf4j
@Service
public class OrderListen {
    @EventListener
    public void sendInfo(OrderEvent orderInfo) {
        log.info("订单信息为： {}", orderInfo.toString());
    }
}
